<div id="content">
    <div class="container">
        <div id="main" style="width:100%">
            <div class="entry single">
                <div class="entry-header">
                    <h2 class="title">Creación de productos</h2>
                </div><!-- end .entry-header -->

                <div class="entry-content">
                    <?php echo validation_errors('<p style="color:red">', '</p>'); ?>
                    <div id="main-content">
                        <form name="form" action="<?php echo site_url('producto/guardar')?>" method="post">
                            <?php echo $tabla;?>
                            <div class="botonContenedor">
                                <input type="submit" class="boton commit" value="Guardar"/>
                            </div>
                            <a href="<?php echo site_url('producto');?>">
                                <div class="fbutton" style="margin-left: 7px;">
                                    <div>
                                        <span class="rollback" style="padding-left: 20px;">Descartar</span>
                                    </div>
                                </div>
                            </a>
                        </form>
                    </div>
                </div><!-- end .entry-content -->
                <?php if($ce == "E"){ ?>
                    <div id="example-one">
                            <ul class="nav">
                                <?php $tab = $this->session->userdata('tab_sel');?>
                                <li class="nav-one">
                                    <a href="#tarifas" <?php if($tab == 'tarifas') echo 'class="current"';?>>Tarifas</a>
                                </li>
                                <li class="nav-two">
                                    <a href="#detalles" <?php if(isset($tab)) if($tab == 'detalles') echo 'class="current"';?>>Detalles</a>
                                </li>
                                <li class="nav-three">
                                    <a href="#distribucion" <?php if(isset($tab)) if($tab == 'distribucion') echo 'class="current"';?>>Distribucion</a>
                                </li>
                                <li class="nav-four">
                                    <a href="#contenidos" <?php if(isset($tab)) if($tab == 'contenidos') echo 'class="current"';?>>Contenidos</a>
                                </li>                                
                                <li class="nav-five">
                                    <a href="#distancias" <?php if(isset($tab)) if($tab == 'distancias') echo 'class="current"';?>>Distancias</a>
                                </li>
                                <li class="nav-six">
                                    <a href="#fotos" <?php if(isset($tab)) if($tab == 'fotos') echo 'class="current"';?>>Fotos</a>
                                </li>
                                <li class="nav-seven last">
                                    <a href="#comentarios">Comentarios</a>
                                </li>
                            </ul>
                            <div class="list-wrap">
                                <ul id="tarifas" <?php if($tab != 'tarifas') echo 'class="hide"';?>>
                                    <?php echo $tarifas;?>
                                </ul>
                                <ul id="detalles" <?php if($tab != 'detalles') echo 'class="hide"';?>>
                                    <div id="main-content">
                                        <form name="form" action="<?php echo site_url('producto/guardar')."/1"?>" method="post">
                                            <?php echo $detalles;?>
                                            <div class="botonContenedor">
                                                <input type="submit" class="boton commit" value="Guardar detalles"/>
                                            </div>
                                            <a href="<?php echo site_url().$this->uri->uri_string();?>">
                                                <div class="fbutton" style="margin-left: 7px;">
                                                    <div>
                                                        <span class="rollback" style="padding-left: 20px;">Descartar</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </form>
                                    </div>                                    
                                </ul>
                                <ul id="distribucion" <?php if($tab != 'distribucion') echo 'class="hide"';?>>
                                    <div id="main-content">
                                        <form name="form" action="<?php echo site_url('producto/guardar_distribuciones');?>" method="post">
                                            <input type="hidden" name="p_url" id="p_url" value="<?php echo site_url().$this->uri->uri_string();?>"/>
                                            <?php echo $distribuciones;?>
                                            <div class="botonContenedor">
                                                <input type="submit" class="boton commit" value="Guardar distribuciones"/>
                                            </div>
                                            <a href="<?php echo site_url().$this->uri->uri_string();?>">
                                                <div class="fbutton" style="margin-left: 7px;">
                                                    <div>
                                                        <span class="rollback" style="padding-left: 20px;">Descartar</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </form>
                                    </div>                                  
                                </ul>
                                <ul id="contenidos" <?php if($tab != 'contenidos') echo 'class="hide"';?>>
                                    <div id="main-content">                                    
                                        <form name="form" action="<?php echo site_url('producto/guardar_contenidos');?>" method="post" enctype="multipart/form-data">
                                            <input type="hidden" name="p_url" id="p_url" value="<?php echo site_url().$this->uri->uri_string();?>"/>
                                            <?php echo $contenidos;?>
                                            <div class="botonContenedor">
                                                <input type="submit" class="boton commit" value="Guardar contenidos"/>
                                            </div>
                                            <a href="<?php echo site_url().$this->uri->uri_string();?>">
                                                <div class="fbutton" style="margin-left: 7px;">
                                                    <div>
                                                        <span class="rollback" style="padding-left: 20px;">Descartar</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </form>
                                    </div>
                                </ul>                                
                                <ul id="distancias" <?php if($tab != 'distancias') echo 'class="hide"';?>>
                                    <div id="main-content">
                                        <form name="form" action="<?php echo site_url('producto/guardar_distancias');?>" method="post">
                                            <input type="hidden" name="p_url" id="p_url" value="<?php echo site_url().$this->uri->uri_string();?>"/>
                                            <?php echo $distancias;?>
                                            <div class="botonContenedor">
                                                <input type="submit" class="boton commit" value="Guardar distancias"/>
                                            </div>
                                            <a href="<?php echo site_url().$this->uri->uri_string();?>">
                                                <div class="fbutton" style="margin-left: 7px;">
                                                    <div>
                                                        <span class="rollback" style="padding-left: 20px;">Descartar</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </form>
                                    </div>
                                </ul>
                                <ul id="fotos" <?php if($tab != 'fotos') echo 'class="hide"';?>>
                                    <div id="main-content">                                    
                                        <form name="form" action="<?php echo site_url('producto/guardar_fotos');?>" method="post" enctype="multipart/form-data">
                                            <input type="hidden" name="p_url" id="p_url" value="<?php echo site_url().$this->uri->uri_string();?>"/>
                                            <?php echo $form_fotos;?>
                                            <div class="botonContenedor">
                                                <input type="submit" class="boton commit" value="Guardar fotos"/>
                                            </div>
                                            <a href="<?php echo site_url().$this->uri->uri_string();?>">
                                                <div class="fbutton" style="margin-left: 7px;">
                                                    <div>
                                                        <span class="rollback" style="padding-left: 20px;">Descartar</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </form>
                                        <?php echo $fotos;?>
                                    </div>
                                </ul>
                            </div> <!-- END List Wrap -->
                    </div> <!-- END Organic Tabs (Example One) -->  
                <?php }?>
                <div class="entry-footer">

                    <strong class="align-left">Contact Us: &nbsp;</strong>

                    <dl class="horizontal">
                        <dt>Web:</dt>
                        <dd>www.yourdomain.com <span class="separator">|</span></dd>
                        <dt>Email:</dt>
                        <dd>yourmail@yourdomain.com <span class="separator">|</span></dd>
                        <dt>Phone:</dt>
                        <dd>+88 44 777 99</dd>
                        <dd><?php echo $this->session->flashdata('message');?></dd>
                    </dl>
                </div><!-- end .entry-footer -->
            </div><!-- end .entry -->
        </div><!-- end #main -->
        <div class="clear"></div>
    </div><!-- end .container -->
</div><!-- end #content -->
